const { Controller } = require('egg');
class UserController extends Controller {
    async info() {
        const { ctx, app } = this;

        await app.mysql.insert('users', { name: '无聊小帅' });

		let a = await app.mysql.select('users');
        console.log('======',a)

        const userId = ctx.params.id;
        const userInfo = await ctx.service.user.find(userId);
        ctx.body = userInfo;
    }
}
module.exports = UserController;